﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


namespace BaseAuthRole.Web.Controllers
{
    [Route("[controller]/[action]")]
    public class ResultController : Controller
    {
        // GET: Result
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Error()
        {
            var message = Request.Query["message"];

            if (string.IsNullOrEmpty(message))
            {


                ViewBag.Message = "出错了";
            }
            else { 
            
                ViewBag.Message = message;
            }


            return View();
        }
    }
}